home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
oath.lha
/
oath
/
test
/
pdl2a.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-29
|
809b
|
33 lines
#include "oath/pdlQueue.h"
#include "oath/character.h"
#include <fstream.h>
/////////////////////////////////////////////////////////////////////////////
// Test of pdlQueues and putCopy()/getCopy()
main ()
{// Predefine Four Characters //////////
characterA A = characterA::make('A');
characterA B = characterA::make('B');
characterA C = characterA::make('C');
characterA D = characterA::make('D');
cout << A << B << C << D << endl;
// Construct the Three Lists //////////
pdlQueueA L1 = pdlQueueA::make() << A << B << C;
pdlQueueA L2 = pdlQueueA::make() << A << B << C;
pdlQueueA L3 = pdlQueueA::make(L2);
// Save the Three Lists //////////
ofstream File ("pdl2.obj");
L1.export(File);
L2.export(File);
L3.export(File);
return 0;
}